<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<style type="text/css" >
	      body{
	      padding-top:50px;
	      }
	
	</style>
</head>
<body class="body">
	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">凯盛项目管理系统</a>
			</div>
		</div>
	</div>
	<div class="container">
	  <div class="row">
		<div class="span9">
          	<div class="page-header">
          		<h2>项目列表</h2>
          	</div>
          	<a href="addproject.jspx" class="btn btn-success"><i class="icon-plus icon-white"></i>开始一个新项目</a>
			<c:if test="${fn:length(projectList)==0}">
				还没有任何项目！
			</c:if>
			<c:forEach items="${projectList}"  var="project">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="project.jspx?id=${project.id }"><i class="icon-th"></i>${project.name}</a>
		    		</li> 
				</ul>
				<div class="well" style="margin-top:0px;background-color:#FFF;border: 1px solid #DDDDDD;">
					<p>${project.desc}</p>
				</div>
			</c:forEach>
		</div>
		<div class="span3">
			<form  action="user.jspx" method="post"  enctype="multipart/form-data"  class="well"  style="width:220px;margin:0px auto;">
			
			<legend>添加系统人员</legend>
			<label>账号</label><input type="text" name="name" class="span3"/>
			<label>密码</label><input type="password" name="password" class="span3"/>
			<label>头像</label><input type="file" name="pic" />
			
			<label>默认头像</label><img alt="" name="pic" src="user.jspx?m=show&img=1.jpg"/>   
			
			<button type="submit" class="btn btn-primary">提交</button>
		</form>
			

		</div>
	  </div>
	</div>
	<c:choose>
		<c:when test="${param.code==101 }">
		<script type="text/javascript">
	
			alert("添加成功");
		
		  
		</script>
		</c:when>
	</c:choose>
	
	
</body>
</html>